package com.bjsxt.service;


import com.bjsxt.pojo.Answer;
import com.bjsxt.pojo.AnswerOpt;
import com.bjsxt.pojo.Survey;

import java.util.List;

public interface SurveyServer {

    public int create(Survey survey);

    public int delete(Integer id);

    public int deleteBatch(String ids);

    public int update(Survey survey);

    public List<Survey> query(Survey survey);

    public List<Survey> queryUrl(Survey survey);


    public Survey detail(Survey survey);

    public Survey detail(Integer id);

    public int count(Survey survey);

    public Survey login(String account, String password);

    public void  updateState();

    public Integer submit(List<AnswerOpt> opts, List<Answer> answers);

    public List<AnswerOpt> queryAnswer(AnswerOpt answerOpt);
}
